package com.yisu.auction.ewf.entity;

import java.io.Serializable;
import java.util.Date;

public class MobileRecharge implements Serializable {
    private Long id;

    private Integer rechargeType;

    private String mobile;

    private Integer face;

    private String orderNo;

    private String thirdPartyOrderNo;

    private Integer pkgType;

    private Integer status;

    private Date createDate;

    private String description;

    private String memberId;

    private Integer mobileOperator;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getRechargeType() {
        return rechargeType;
    }

    public void setRechargeType(Integer rechargeType) {
        this.rechargeType = rechargeType;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public Integer getFace() {
        return face;
    }

    public void setFace(Integer face) {
        this.face = face;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public String getThirdPartyOrderNo() {
        return thirdPartyOrderNo;
    }

    public void setThirdPartyOrderNo(String thirdPartyOrderNo) {
        this.thirdPartyOrderNo = thirdPartyOrderNo;
    }

    public Integer getPkgType() {
        return pkgType;
    }

    public void setPkgType(Integer pkgType) {
        this.pkgType = pkgType;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getMemberId() {
        return memberId;
    }

    public void setMemberId(String memberId) {
        this.memberId = memberId;
    }

    public Integer getMobileOperator() {
        return mobileOperator;
    }

    public void setMobileOperator(Integer mobileOperator) {
        this.mobileOperator = mobileOperator;
    }

    public enum PkgTypeEnum{

        NationWide(1, "全国"),
        Province(2, "省内");
        public int code;
        public String name;

        PkgTypeEnum(int code, String name) {
            this.code = code;
            this.name = name;
        }

        public static String getEnumNameByCode(int code) {
            for (PkgTypeEnum item : PkgTypeEnum.values()) {
                if (item.code == code)
                    return item.name;
            }
            return null;
        }
    }

    public enum RechargeTypeEnum{

        Balance(1, "BALANCE"),
        Traffic(2, "TRAFFIC");
        public int code;
        public String name;

        RechargeTypeEnum(int code, String name) {
            this.code = code;
            this.name = name;
        }

        public static String getEnumNameByCode(int code) {
            for (RechargeTypeEnum item : RechargeTypeEnum.values()) {
                if (item.code == code)
                    return item.name;
            }
            return null;
        }
    }

    public enum MobileOperatorEnum{

        Locomotion(1, "移动"),
        Unicom(2, "联通"),
        Telecom(3, "电信");
        public int code;
        public String name;

        MobileOperatorEnum(int code, String name) {
            this.code = code;
            this.name = name;
        }

        public static String getEnumNameByCode(int code) {
            for (MobileOperatorEnum item : MobileOperatorEnum.values()) {
                if (item.code == code)
                    return item.name;
            }
            return null;
        }
    }

    public enum MobileRechargeStatus
    {
        WAIT_PAY(1, "等待支付"),
        WAIT_RECHARGE(2, "等待充值"),
        SUCCESS(3, "成功");
        public int code;
        public String name;

        MobileRechargeStatus(int code, String name) {
            this.code = code;
            this.name = name;
        }

        public static String getEnumNameByCode(int code) {
            for (MobileRechargeStatus item : MobileRechargeStatus.values()) {
                if (item.code == code)
                    return item.name;
            }
            return null;
        }
    }
}